package org.eece262.taskshareserver;

import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class ContactPair {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String user1;
    
    @Persistent
    private String user2;
    
    @Persistent
    private int status;
    
    public static class StatusType {
    	public static final int ACTIVE = 0;
    	public static final int REQUESTED = 1;
    	public static final int WAITING = 2; 
    	public static final int ACCEPTED = 3;
    	public static final int DELTETED = 4;
    }
    
    public ContactPair(String user1, String user2, int status) {
    	this.user1 = user1;
    	this.user2 = user2;
    	this.status = status;
    }

	public String getUser1() {
		return user1;
	}

	public void setUser1(String user1) {
		this.user1 = user1;
	}

	public String getUser2() {
		return user2;
	}

	public void setUser2(String user2) {
		this.user2 = user2;
	}

	public Key getKey() {
		return key;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
    
}